import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';


void main() => runApp(MyWidget());


class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return
      new MaterialApp(
        home: new DefaultTabController(
          length: 3,
          child: new Scaffold(
              appBar: new AppBar(
                title: const Text('Tabbed AppBar'),
              ),
              body:
            CachedNetworkImage(
              imageUrl: 'https://picx.zhimg.com/80/v2-6b65282beac97dc7c492371a160b3b82_720w.webp?source=1def8aca',
              placeholder: (context, url) => CircularProgressIndicator(),
              errorWidget: (context, url, error) => Icon(Icons.error),
            ),




          ),
        ),
      );
  }
}